export const CANCEL = 0
export const WAIT_PAY = 1
export const WAIT_DELIVERY = 2
export const WAIT_RECEIVE = 3
export const WAIT_COMMENT = 4
export const COMPLETE = 5

export const getOrderStatusMsg = (orderStatus) => {
    switch (orderStatus) {
        case CANCEL:
            return '已取消'
        case WAIT_PAY:
            return '待支付'
        case WAIT_DELIVERY:
            return '待发货'
        case WAIT_RECEIVE:
            return '待收货'
        case WAIT_COMMENT:
            return '待评论'
        case COMPLETE:
            return '已完成'
        default:
            return ''
    }
}